package com.zmn.plat.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 类描述：订单配置常量定义
 *
 * @author mujunlin
 * @since 2020/03/16 10:50 上午
 */
public class OrderConfigConsts {

    /**
     * 订单配置-投诉内容配置-工程师角色ID
     */
    public final static int ROLE_ENGINEER = 10000;

    @Getter
    @AllArgsConstructor
    public enum AutoStatusEnum {

        /**
         * 新单自动派单：关闭自动派单
         */
        AUTO_STATUS_FORBIDDEN(1, "关闭"),

        /**
         * 新单自动派单：推荐自动派单
         */
        AUTO_STATUS_RECOMMEND(2, "推荐自动派"),

        /**
         * 新单自动派单：指定工程师自动派单
         */
        AUTO_STATUS_ENGINEER(3, "指定自动派"),

        /**
         * 新单自动派单：公平自动派
         */
        AUTO_STATUS_FAIR(4, "公平自动派单");

        private final int code;

        private final String name;

    }

    @Getter
    @AllArgsConstructor
    public enum ReworkStatusEnum {

        /**
         * 返修自动派：关闭
         */
        REWORK_STATUS_FORBIDDEN(1, "关闭"),

        /**
         * 返修自动派：源工程师自动派
         */
        REWORK_STATUS_ENGINEER(2, "源工程师自动派");

        private final int code;

        private final String name;

    }

    @Getter
    @AllArgsConstructor
    public enum StatusEnum {

        /**
         * 通用状态：停用
         */
        STATUS_FORBIDDEN(1, "停用"),

        /**
         * 通用状态：启用
         */
        STATUS_NORMAL(2, "启用");

        private final int code;

        private final String name;

    }

}
